class Feed::MoneyToolMonthConsumed < Feed
  
  validates_presence_of :user_id,
    :money
  
  validates_presence_of :subed_money,
    :user_id, 
    :tool_id      
      
  def before_create
    self.version = 1
  end
  
  # to template
  def to_t
    ":user于:created_at_ago_in_words前了消费了:subed_money麦粒，用于支付当月:tool的使用"
  end
end